<template>
	<view>
		<view>{{username}}</view>
		<view v-for="one in tel">{{one}}</view>
		<view v-if="age>=18">
			<button @tap="baoming">我要报名</button>
		</view>
		
		<view>
			<input type="text" v-model="address" />
		</view>
		<view>{{address}}</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				username:"Hillky",
				tel:['110','120'],
				age:20,
				address:''
			}
		},
		methods: {
			baoming(){
				uni.showToast({
					title:"点击了报名按钮"
				})
			}
		}
	}
</script>

<style>

</style>
